package net.wangds.auth.role.entity;

import lombok.NoArgsConstructor;
import net.wangds.auth.common.entity.AbstractResActionRef;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

@Entity
@Table(
        name="auth_role_res_ref",
        uniqueConstraints=@UniqueConstraint(columnNames={"roleId","resId"})
)
@NoArgsConstructor(force = true)
public class GeneralRoleResRef extends AbstractResActionRef {
    private static final long serialVersionUID = 0;
    /**
     * 角色id.
     */
    @Column(length=36)
    private String roleId;


    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

}
